package com.dotflat.staffExtend.repository;

import com.dotflat.staffExtend.domain.StaffExtendVaccine;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.stereotype.Repository;

import javax.transaction.Transactional;

@Repository
public interface StaffExtendVaccineRepository extends JpaRepository<StaffExtendVaccine, String>, JpaSpecificationExecutor<StaffExtendVaccine> {

    @Modifying
    @Transactional
    void deleteAllByExtendInfoId(String extendInfoId);

}
